package LIst;

import java.util.List;

public class LinkedList {
    public static void main(String[] args) {
       List linkedList =new java.util.LinkedList();
        linkedList.add("a");
        linkedList.add("b");
        linkedList.add("c");
        linkedList.add("d");
        for (int i = 0; i <linkedList.size() ; i++) {
            System.out.println(linkedList.get(i));
        }
        System.out.println(linkedList.toString());
        linkedList.remove(1);
        linkedList.size();
        linkedList.set(2,"F");//修改
        System.out.println(linkedList.toString());
    }
}
